package resize;

public class Test {
	
	public int add(int...args){
		int sum = 0;
		for (int i = 0; i < args.length; i++) {
			sum += args[i];
		}
		return sum;
	}
	
	public static void main(String[] args) {
		Test t = new Test();
		System.out.println(t.add());
		System.out.println(t.add(1));
		System.out.println(t.add(1,2));
	}

}
